package com.cll.pmis.model;

import com.cll.pmis.common.validator.group.Insert;
import com.cll.pmis.entity.Prescribe;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author chenliangliang
 * @date 2018/7/5
 */
@Data
public class PrescribeVo implements Serializable {

    private static final long serialVersionUID = 7461483353677959939L;

    @NotNull(message = "病例号不能为空",groups = {Insert.class})
    private Integer dossierId;

    @NotEmpty(message = "开药信息不能为空",groups = {Insert.class})
    private List<Prescribe> list;

}
